package com.bml.architect.spring.listener;

import com.bml.architect.spring.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;

/**
 * @author: baiml
 * @Title: MyListener
 * @ProjectName: 中台技术平台
 * @Depart 中台研发部
 * @Description:
 * @date: 2021/9/7 16:18
 */
@Component
public class MyListener implements ApplicationListener<ContextRefreshedEvent> {

    @Autowired
    private UserService userService;
    @Override
    public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) {
        System.out.println("触发事件....");
    }
}
